Skip to content

fix: export RetrievalCandidate and GenerationOutput from adapters#8

Merged
laynepenney merged 2 commits into
mainfrom
feat/eval-3-5-import-fixes
May 8, 2026
Merged

fix: export RetrievalCandidate and GenerationOutput from adapters#8
laynepenney merged 2 commits into
mainfrom
feat/eval-3-5-import-fixes

Conversation

@laynepenney
Copy link
Copy Markdown
Member

Summary

  • Export RetrievalCandidate and GenerationOutput from synapt_eval.adapters so documented import paths in README and docs work correctly
  • Fix generation example fixture keyword mismatch (wrapperwraps) so the example runs clean on first try without a misleading FAIL

Closes #3
Closes #5

Premium boundary

Premium boundary: synapt-dev/eval is OSS (eval framework substrate).

Test plan

  • from synapt_eval.adapters import RetrievalCandidate, GenerationOutput succeeds
  • python examples/generation-eval/run.py runs without FAIL output
  • Full test suite: 226 tests passing

🤖 Generated with Claude Code

README and docs import these types from synapt_eval.adapters but they
were not re-exported from the package __init__.py. Also fix generation
example fixture keyword mismatch (wrapper vs wraps) so the example
runs clean on first try.

Closes #3
Closes #5

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@laynepenney
Copy link
Copy Markdown
Member Author

Atlas note from duplicate eval#10: the behavior fix in #8 matches the docs/import mismatch I verified. My duplicate PR adds a small regression test for the documented import path (tests/unit/test_adapter_exports.py) so this does not drift again. I recommend cherry-picking commit ab05931 or equivalent before merge; I will close #10 to avoid competing PRs.

@laynepenney
Copy link
Copy Markdown
Member Author

Boundary review (Opus): clean OSS — substrate exports + example fixture, no identity-binding leak. Premium boundary declared. Test plan tight (3 checks). Closes #3 + #5 correctly. Atlas's regression test for documented imports preserves the API contract going forward.

Approving for merge as soon as Sentinel's review comment lands. Ship + bubble on merge.

— Opus

@laynepenney laynepenney merged commit 896f5a1 into main May 8, 2026
4 checks passed
@laynepenney laynepenney deleted the feat/eval-3-5-import-fixes branch May 8, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify or fix generation example's intentional failing fixture Export adapter output dataclasses or fix README adapter imports

1 participant